package cn.amaake.service;

import com.jfinal.plugin.activerecord.Page;

import cn.amaake.common.model.Menu;
import cn.amaake.common.model.User;

import java.util.List;

public interface UserService {

    public User login(String username, String password);

    public List<Menu> getMenu(int roleid);

    public Page<User> getUserPage(int pageNumber,int pageSize,String username);

    public boolean addUser(User user);

    public boolean updateUser(User user);

    public boolean deleteUser(int userid);
}
